<%@page import="com.jspsmart.upload.SmartUpload"%>
<%@page import="com.is.util.ParamUtil"%>
<%@page import="com.is.export.control.ExportOneClassDetail"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>



    <%
    response.reset(); //避免getWriter() has already been called for this response
    int classId = ParamUtil.getInt(request,"classId",0);
    int stuyear = ParamUtil.getInt(request,"stuyear",0);
   String time1 = ParamUtil.getString(request,"time1");
   String time2 = ParamUtil.getString(request,"time2");
    session.setAttribute("exportAttClassId",classId);
    session.setAttribute("exportAttrStuyear",stuyear);
    session.setAttribute("attTime1",time1);
    session.setAttribute("attTime2",time2);
	String path = request.getRealPath("/");
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+request.getContextPath()+"/";
	String fileName = System.currentTimeMillis() + ".xls";
	String realPath = path + "\\DownloadXls\\" + fileName;
	String visitPath = basePath + "/DownloadXls/" + fileName;
	ExportOneClassDetail.ExportOneClassAllAttendance(realPath, request);

	SmartUpload smartUpload = new SmartUpload();
	smartUpload.initialize(pageContext);
	smartUpload.setContentDisposition(null);
	smartUpload.downloadFile(realPath);
	out.clear();
 	out=pageContext.pushBody();
%>

